<template>
    <div class="loading">
        <slot><van-loading /></slot>
    </div>
</template>

<script>
import { Loading } from 'vant'
export default {
    name:'',
    data(){
        return {

        }
    },
    components: {
        [Loading.name]: Loading
    }
}
</script>

<style scoped lang="less">
    .loading{
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateX(-50%);
        transform: translateY(-50%);
    }
</style>
